﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

/// <summary>
/// Summary description for MoneyManagerConfig
/// </summary>
public static class MoneyManagerConfig
{
    public static int AdminPageSize
    {
        get
        {
            try
            {
                return int.Parse(ConfigurationManager.AppSettings["AdminPageSize"].ToString());
            }
            catch { }
            return 20;
        }
    }

    public static string DateFormat
    {
        get
        {
            try
            {
                return ConfigurationManager.AppSettings["DateFormat"].ToString();
            }
            catch
            {
                return "dd/MM/yyyy";
            }
        }
    }

    public static string DateTimeFormat
    {
        get
        {
            try
            {
                return ConfigurationManager.AppSettings["DateTimeFormat"].ToString();
            }
            catch
            {
                return "dd/MM/yyyy hh:mm";
            }
        }
    }

    public static string CurrencyFormat
    {
        get
        {
            try
            {
                return ConfigurationManager.AppSettings["CurrencyFormat"].ToString();
            }
            catch
            {
                return "$ #,##0";
            }
        }
    }
}
